<template>
  <div id="navbar" style="padding: .7rem 1.5rem">
    <div class="navbar-start">
      <img
          style="width: 40px"
          :src="bloggerInfo.avatar"
          alt="Element logo"
      />
      <span style="margin-left: 10px;font-size: 1.25rem;"> {{bloggerInfo.bloggerName}} </span>
    </div>
    <div class="navbar-center">
      <el-menu
          :router = "true"
          class="el-menu-demo"
          mode="horizontal"
          active-text-color="#3eaf7c"
      >
        <el-menu-item index="/main"><el-icon><HomeFilled /></el-icon>主页</el-menu-item>

      </el-menu>
    </div>
    <div class="navbar-end"></div>
  </div>
</template>

<script setup lang="ts">
import {ref} from 'vue'
import {bloggerInfo} from "@/store/customer/inedx";

const source = ref('');
const activeIndex = ref('1')
</script>
<style scoped>
#navbar{
  background-color: white;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
  height: 60px;
  font-size: .875rem;
}
.navbar-start, .navbar-end, .navbar-center {
  width: 33.33%;
  float: left;
  display: flex;
  flex: 1;
  align-items: center;
}
.el-menu-demo{
  margin :auto;
  height: 49px;
  min-width: 200px;
}
</style>